HighContrast: fix focus
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 12:59:56 +0000 (12:59 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 13:19:29 +0000 (13:19 +0000)
We don't want to render focus rectangles on everything. With
the way focus is propagated nowadays, the theme has to selectively
render focus on certain widgets.

At the same time, we always want to render focus for this
theme, so use the focus pseudoclass, not focus(visible).

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1815
gtk/theme/HighContrast/_common.scss

index fc367aa5c5d7a2f1d1a6ae7a56edfac8c36e8eb6..e98c7324c13a1b2e063da4739aaa983195cd648a 100644 (file)
@@ -16,7 +16,14 @@ $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
   outline-style: none;
 }
 
-*:focus(visible) {
+button:focus,
+checkbutton:focus,
+radiobutton:focus,
+switch:focus,
+scale:focus,
+label:focus,
+row:focus,
+flowboxchild:focus {
   // We use the outline properties to signal the focus properties
   // to the adwaita engine: using real CSS properties is faster,
   // and we don't use any outlines for now.